<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    <title>添加供应商 - ${provider.name }</title>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<link rel="stylesheet" href="admin/css/common.css" type="text/css" />
	<link rel="stylesheet" href="admin/css/provider.css" type="text/css" />
	<script type="text/javascript" src="js/jquery-1.7.1.js"></script>
	<link rel="stylesheet" href="./kindeditor/themes/default/default.css" />
	<link rel="stylesheet" href="./kindeditor/plugins/code/prettify.css" />
	<script charset="utf-8" src="./kindeditor/kindeditor.js"></script>
	<script charset="utf-8" src="./kindeditor/lang/zh_CN.js"></script>
	<script charset="utf-8" src="./kindeditor/plugins/code/prettify.js"></script>
	
	<script type="text/javascript">
		<!--
		KindEditor.ready(function(K) {
			var editor1 = K.create('textarea[name="provider.description"]', {
				cssPath : 'kindeditor/plugins/code/prettify.css',
				uploadJson : 'kindeditor/jsp/upload_json.jsp',
				fileManagerJson : 'kindeditor/jsp/file_manager_json.jsp',
				allowFileManager : true,
				afterCreate : function() {
					var self = this;
					K.ctrl(document, 13, function() {
						self.sync();
						document.forms['providerForm'].submit();
					});
					K.ctrl(self.edit.doc, 13, function() {
						self.sync();
						document.forms['providerForm'].submit();
					});
				}
			});
			prettyPrint();
		});

		//判断是否为空
		function check(){
			
		}
		//-->
	</script>
  </head>
  <body ">
  	<div id="provider_zone">
  	  <form action="provider/listProviderStones.action" name="providerForm" method="post" onsubmit="return check();">
		  <table width="99%" border="0" align="center"  cellpadding="3" cellspacing="1" class="table_style">
		    <tr>
		      	<td width="18%" class="left_title_1">供应商名字</td>
			      <td width="82%" style="	line-height: 30px; width: 305px; color:#73938E; font-size: 10pt;">
						${provider.name }
			      </td>
		    </tr>
		     <tr>
		      	<td class="left_title_2" >
		      		填写说明
		      	</td>
		      	<td>
		      		<span class="tip">
						请填写好几个部分的内容：<br />
							&nbsp;&nbsp;供应商的简要介绍<br />
							&nbsp;&nbsp;供应商联系人资料<br />
							&nbsp;&nbsp;在编辑窗口内按ESC可放大编辑*
					</span>	      		
		      	</td>
		    </tr>
		    <tr>
		      	<td colspan="2">
		      		<textarea id="description" name="provider.description" style="width:99%;height:500px;visibility:hidden;"></textarea>
		      	</td>
		    </tr>
		    <tr>
		    	<td colspan="2"  class="left_title_2">
		    		<input type="hidden" value="${provider.id }" name="provider.id" />
					<input type="submit" class="input-submit" value="保存，下一步">(提交快捷键: Ctrl + Enter)
				</td>
		    </tr>
		  </table>
	  </form>
	</div>
  </body>
</html>
